package com.aegean.MonitorExamSYS.android.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.examinee.business.ExamineeBusiness;
import com.aegean.MonitorExamSYS.examinee.component.ExamineeExam;
import com.aegean.MonitorExaxSYS.model.ExamineeValue;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ExaimeesSearchPositionsForAndroid")
@Scope("prototype")
public class ExaimeesSearchPositionsForAndroid extends ActionSupport {
	@Resource
	ExamineeBusiness business;
	private int user_Id;
	private int totalRows;
	private List<ExamineeExam> exs;

	public int getUser_Id() {
		return user_Id;
	}

	public void setUser_Id(int user_Id) {
		this.user_Id = user_Id;
	}

	public int getTotalRows() {
		return totalRows;
	}

	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}

	public List<ExamineeExam> getExs() {
		return exs;
	}

	public void setExs(List<ExamineeExam> exs) {
		this.exs = exs;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		totalRows = business.showExamineeQualifications(user_Id, "(3)");
		exs = business.showExamineeQualificationsList(user_Id, 0, totalRows,
				"(3)");
		return SUCCESS;

	}

}
